package com.java.base.exercise.designmode.proxy;

import com.java.base.exercise.designmode.proxy.cglibproxy.AliSmsService;
import com.java.base.exercise.designmode.proxy.cglibproxy.CglibProxyFactory;

/**
 * @Author RenPu
 * @Date 2022/6/20 17:05
 * @Version 1.0
 * @Description: Cglib动态代理测试类
 **/
public class CglibProxyTest {
    public static void main(String[] args) {
        AliSmsService aliSmsService = (AliSmsService)CglibProxyFactory.getProxyObj(AliSmsService.class);
        String send = aliSmsService.recive("java 是王者语言....");
        System.out.println(send);


    }



}
